package com.bysc.cmsservice.client;

import com.bysc.commonutils.Results;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

@Component

@FeignClient(value = "service-join",fallback = JoinDegradeFeignClient.class)

public interface JoinClient {

    //查询所有报名表
    @GetMapping("/joinservice/join-dept/getAllDeptInfo")
    Results getAllDeptInfo();

    //查询前六条社团信息
    @GetMapping("/joinservice/join-clubs/getSomeClubs")
    Results getSomeClubs();
}